package cn.wolfcode.wms.domain;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSON;

import lombok.Getter;
import lombok.Setter;
@Setter@Getter
public class Product extends BaseDomain{

    private String name;

    private String sn;

    private BigDecimal costPrice;

    private BigDecimal salePrice;

    private String imagePath;

    private String intro;

    private Long brandId;

    private String brandName;
    
    public String getProductInfo(){
    	Map<String, Object> map = new HashMap<>();
    	map.put("id", getId());
    	map.put("name", name);
    	map.put("brandName", brandName);
    	map.put("costPrice", costPrice);
    	map.put("salePrice", salePrice);
    	return JSON.toJSONString(map);
    }
}